<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>背单词记录</title>
<style>
body { font-size:14px; margin:10px; font-family:Arial, Helvetica, sans-serif; }
div, span, h1, h2, h3 { overflow:hidden; margin:0; padding:0; }
a { color:#0000FF; }
a:active { color:#FF6600; }
a:visited { color:#999; }

.site h2 { color:#000; font-size:14px; margin:5px 0 5px 0; }
.site ol { line-height:20px; }
.site li { color:#999; font-size:13px; }

.system_data { font-size:13px; color:#666666; margin:5px 0 0 0; word-spacing:1px; }

.day { border:#f00 1px solid; width:200px; height:200px; background:#eee; float:left; margin:10px; padding:10px; font-size:14px; line-height:30px; }
</style>

</head>
<body>

<?php
	$start_time = strtotime('2011-05-09');
	$days = intval((time() - $start_time) / 86400) + 1;
	$days < 30 && $days = 30;
?>
<?php for($i = 0; $i < $days; $i++) : ?>
	<div class="day">
		<?php $time = $start_time + 86400 * $i; ?>
		<b><?php echo date('Y.m.d', $time); ?></b>
		<br />
		<?php if(isset($result[$time])) : ?>
			<?php echo $result[$time][0]['content']; ?>
		<?php endif; ?>
	</div>
<?php endfor; ?>


</body>
</html>
